package com.bigflexlib.x.Math.range
{
	import flash.events.Event;
	





	/**
	 * 
	 * @author abucchi
	 * 
	 */
	public class RangeMatcherEvent extends Event
	{
		
		
		public static const MATCHED_RANGE_CHANGED:String = "matchedRangeChanged";
		
		
		
		private var _oldRange:Range;
		/**
		 * 
		 * Can be NULL
		 * 
		 * @return 
		 * 
		 */		
		public function get oldRange( ):Range
		{
			return _oldRange;
		}
		
		
		
		private var _newRange:Range;
		/**
		 *
		 * Can be NULL
		 *  
		 * @return 
		 * 
		 */		
		public function get newRange( ):Range
		{
			return _newRange;
		}
		
		
		
		public function RangeMatcherEvent( type:String, oldRange:Range, newRange:Range, bubbles:Boolean=false, cancelable:Boolean=false )
		{
			
			super(type, bubbles, cancelable);
		
			_oldRange = oldRange;
			_newRange = newRange;
		
		}
		
		
		override public function clone():Event
		{
			
			return new RangeMatcherEvent( type, oldRange, newRange, bubbles, cancelable );
		
		}
		
		
		
	}
}